<template>
  <div class="auth"></div>
</template>

<script>
import { API_URL } from '@/utils/config';

export default {
  name: 'authorization',
  data() {
    return {};
  },
  created() {
    let query = this.$route.query;
    let params = [];
    for (let index in query) {
      params.push(`${index}=${query[index]}`);
    }
    // return;
    let url = `${API_URL}/api/order/open_id?activity_id=${
      this.$route.query.activityid
    }&h5_callback=${encodeURIComponent(
      `https://m.hangzhouhaiyu.com/douwu/#/?${params.join('&')}`
    )}`;
    window.location.href = url;
  },
  mounted() {},
  computed: {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.auth {
  text-align: center;
  font-size: 40px;
  padding-top: 100px;
  .txt {
    margin-top: 30px;
  }
}
</style>
